package com.livestocksolutions;

/* -- Version History --
 *  1.0 : 27 December 2012 - Initial version.
 */

/**
 * This class identifies an Chemical that will be used in a mixture.
 * @author Adam Parr
 * @version 1.0
 * 
 * @.modified 05 March 2013
 */
public class UsedChemical extends UsedItem {
	/**
	 * Create an UsedChemical Object using the given Chemical and ratio of the item.
	 * @param item The Chemical that is being used within a mixture.
	 * @param units The amount of the item that is consumed for this UsedItem.
	 * @param measurement The unit of measure for the units provided.
	 */
	public UsedChemical(Chemical item, double units, String measurement){
		super(item, units, measurement);
	}
	
	/**
	 * Simple Constructor to create an empty UsedChemical.
	 */
	public UsedChemical(){
		super();
	}
	
	/**
	 * Set the item of this UsedChemical.
	 * @param item The Chemical to set.
	 */
	public void setItem(Chemical item){
		super.setItem(item);
	}
	
	/**
	 * Get the Chemical of this UsedChemical.
	 * @return The Chemical Item used in the mixture.
	 */
	@Override
	public Chemical getItem(){
		return (Chemical)LivestockSolutions.getUsableItemByID(item);
	}
}
